how to find critical numbers